package com.bitbits.plugins.completions;

import com.intellij.codeInsight.completion.CompletionContributor;
import com.intellij.codeInsight.completion.CompletionType;
import com.intellij.patterns.PlatformPatterns;
import com.intellij.psi.css.impl.CssElementTypes;

/**
 * 代码自动完成类
 */
public class Px2rpxContributor extends CompletionContributor {
    public Px2rpxContributor() {
        extend(
                CompletionType.BASIC,
                PlatformPatterns.psiElement(CssElementTypes.CSS_IDENT).withParent(PlatformPatterns.psiElement(CssElementTypes.CSS_NUMBER_TERM)),
                new Px2rpxProvider()
        );
    }
}
